package com.example.farmbreeding.controller;

import com.example.farmbreeding.mapper.UserMapper;
import com.example.farmbreeding.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-11-16
 * Time: 9:55
 */

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @RequestMapping("/select")
    public User selectById(Integer id){
        return userMapper.selectById(id);
    }
}
